package com.mall.service.impl;

import com.mall.entity.Type;
import com.mall.mapper.TypeMapper;
import com.mall.service.TypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.annotations.ApiImplicitParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author fire
 * @since 2020-04-16
 */
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type> implements TypeService {

    @Autowired
    private TypeMapper typeMapper;

    @Override
    public List<Type> listAllType() {
        return typeMapper.selectList(null);
    }
}
